import request from '../../utils/Request'

export const saveRole = data => {
    return request({
        method: 'post',
        url: '/api/platform/role/save',
        data: data
    })
}
export const createRole = data => {
    return request({
        method: 'post',
        url: '/api/platform/role/create',
        data: data
    })
}
export const updateRole = data => {
    return request({
        method: 'post',
        url: '/api/platform/role/update',
        data: data
    })
}

export const deleteRole = bId => {
    return request({
        method: 'get',
        url: '/api/platform/role/delete/' + bId,
        params: {}
    })
}

export const selectRole = bId => {
    return request({
        method: 'get',
        url: '/api/platform/role/select' + bId
    })
}

export const listRole = data => {
    return request({
        method: 'get',
        url: '/api/platform/role/list',
        params: data
    })
}